package com.whg.shiro.controller;

import com.whg.shiro.domain.common.JsonData;
import org.apache.shiro.authz.annotation.Logical;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author whg
 * @create 2022/10/12 14:04
 * @description：
 */
@RestController
@RequestMapping("admin")
public class AdminController {

    @RequestMapping("/video/list")
    public JsonData findMyPlayRecord(){
        Map<String,String> recordMap = new HashMap<>();

        recordMap.put("SpringBoot","100元");
        recordMap.put("java","2220元");
        recordMap.put("linux","3222元");
        recordMap.put("rocketMq","4444元");

        return JsonData.buildSuccess(recordMap);
    }
}
